package com.longxiao.vo;

import sun.java2d.pipe.SpanShapeRenderer;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.PriorityQueue;

/**
 * Created by houhongwei on 2017/5/17.
 */
public class JoinResultVo {

    int classId;

    String time;

    private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public JoinResultVo(int classId, Date time) {
        this.classId = classId;
        this.time = SDF.format(time);
    }

    public JoinResultVo(int classId, String time) {
        this.classId = classId;
        this.time = time;
    }

    @Override
    public String toString() {
        return "JoinResultVo{" +
                "classId=" + classId +
                ", time='" + time + '\'' +
                '}';
    }

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
